package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * @Author: hongxiao
 * @Description:
 * @Date: 2019/1/11 5:43 PM
 * @Modified By:
 */
@Getter
public enum SmsSignStatusEnum {
    /**
     * 短信签名状态
     */
    APPLY_ING(0, "enum.smsSignStatus.name.apply_ing"),
    APPROVAL_ING(1, "enum.smsSignStatus.name.approval_ing"),
    APPROVAL_SUCCESS(2, "enum.smsSignStatus.name.approval_success"),
    APPROVAL_FAILURE(3, "enum.smsSignStatus.name.approval_failure"),
    ;

    /**
     * 短信签名状态
     */
    private int code;
    /**
     * 短信签名状态名称
     */
    private String name;

    SmsSignStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
